from django.conf.urls.defaults import *
from dev.synchronicity.models import Project

info_dict = {
    'queryset': Project.objects.all(),
}

urlpatterns = patterns('',
	(r'^admin/', include('django.contrib.admin.urls')),
	
	# Login URLS
	(r'^$', 'dev.synchronicity.loginViews.login'),
	(r'^accounts/login/$', 'dev.synchronicity.views.login'),
	(r'^accounts/home/$', 'dev.synchronicity.views.loggedin'),
	(r'^accounts/logout/$', 'dev.synchronicity.views.logout'),
	(r'^accounts/loggedout/$', 'django.views.generic.simple.direct_to_template', {'template': 'loggedout.html'}),
	
	(r'^accounts/add-project/$', 'dev.synchronicity.views.addProject'),
	
	# Create/Edit/Remove urls.
	(r'^projects/edit/', 'dev.synchronicity.views.edit'),
    # Uncomment this for admin


	# Development URLS
	(r'^dev/home/$', 'django.views.generic.simple.direct_to_template', {'template': 'dev/index.html'}),
	
	(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/Users/zach/dev/synchronicity/templates/static'}),
)